﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoucherTicketDetail.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Voucher.VoucherTicketDetail" %>


<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/Shop/Voucher/VoucherTicketDetail.aspx">

    <div class="pageContent">
    
    <div class="pageFormContent" layoutH="60">
		<h3 class="contentTitle">基本信息</h3>  
        <dl class="nowrap">
            <dt>编号：</dt>
            <dd><input type="text" name="TicketCode" class="required" value="<%=Ticket==null?"":Ticket.TicketCode %>"/></dd>
        </dl>    

        <dl class="nowrap">
            <dt>标题：</dt>
            <dd><input type="text" name="TicketTitle" class="required" value="<%=Ticket==null?"":Ticket.Title %>"></dd>
        </dl>    
        
        <dl class="nowrap">
            <dt>状态：</dt>
            <dd>
            <select name="Status" class="combox">
                        <option value="0" <%=Ticket==null?"":(Ticket.Status=="0"?"selected='selected'":"" )%>>未领取</option>
                        <option value="1" <%=Ticket==null?"":(Ticket.Status=="1"?"selected='selected'":"" )%>>已领取</option>
                        <option value="9" <%=Ticket==null?"":(Ticket.Status=="9"?"selected='selected'":"" )%>>已使用</option>
            </select>
            </dd>
        </dl> 
        <dl class="nowrap">
            <dt>有效期</dt>
            <dd>
             <table border="0" cellspacing="0" cellpadding="0">
            	<tr>
            		<td><input class="required date textInput" datefmt="yyyy-MM-dd HH:mm:ss" name="StartUseDate" value="<%=Ticket==null ? string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now):string.Format("{0:yyyy-MM-dd HH:mm:ss}", Ticket.StartUseDate) %>"/><a class="inputDateButton" href="javascript:;">选择</a></td>
                    <td>&nbsp;&nbsp;至&nbsp;&nbsp;</td>
                    <td><input class="required date textInput" datefmt="yyyy-MM-dd HH:mm:ss" name="EndUseDate" value="<%=Ticket==null?string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now.AddMonths(1)):string.Format("{0:yyyy-MM-dd HH:mm:ss}", Ticket.EndUseDate) %>"/><a class="inputDateButton" href="javascript:;">选择</a>
                    </td>
            	</tr>
            </table>
            </dd> 
        </dl>  
        <dl class="nowrap">
            <dt>面值：</dt>
            <dd><input type=text  width="100px" name="Amount" class="required number" value="<%=Ticket==null?0:Ticket.Amount %>"></dd>
        </dl>     

        <dl class="nowrap">
            <dt>最小使用值：</dt>
            <dd><input type="text"  width="100px" name="OrderMinAmount" class="required number" value="<%=Ticket==null?0:Ticket.OrderMinAmount %>"><span class="info">订单满足这个最小值时才能使用此券，0表示不限制</span></dd>

        </dl>   
        <dl class="nowrap">
            <dt>说明：</dt>
            <dd>
            <textarea name="Memo" cols="60" rows="4" class=""><%=Ticket == null ? "" : Ticket.Memo%></textarea>
            </dd>
        </dl>   
        
		<h3 class="contentTitle">其他设置</h3>  
         <dl class="nowrap">
            <dt>会员帐号：</dt>
            <dd><input type="text"  width="100px" name="Member" value="<%=Ticket==null?"":Ticket.MemberAccount %>"/>
            </dd>

        </dl>   
         <dl class="nowrap">
            <dt>领取时间：</dt>
            <dd>
            <input class="required date textInput" datefmt="yyyy-MM-dd HH:mm:ss" name="GotDate" value="<%=Ticket==null?"1970-01-01 00:00:00":string.Format("{0:yyyy-MM-dd}", Ticket.GotDate) %>"/><a class="inputDateButton" href="javascript:;">选择</a>
            </dd>

        </dl> 
	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('0');" type="submit">保存</button></div></div>
            </li>
			<%--<li>
		    <div class="button"><div class="buttonContent">
		    <button type="button" onclick="navTab.openTab('CouponTicketDetail', '/SystemManage/Basics/Shop/Coupon/CouponTicketDetail.aspx',{data:{tabid:'CouponTicketDetail'}});">取消并新增</button></div></div>
			</li>
            <li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('1');" type="submit">保存并新增</button></div></div>
            </li>--%>
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    </form>